//
//  BaseViewController.m
//  NLSGProject
//
//  Created by 刘璇 on 2017/8/13.
//  Copyright © 2017年 Xuan. All rights reserved.
//

#import "BaseViewController.h"

#define FPS 20.0
@interface BaseViewController ()
@property (nonatomic,strong)NSDictionary * classNameDic;


@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];

    [self configUI];
    
    if (self.navigationController.viewControllers.firstObject == self) {
        self.navigationController.interactivePopGestureRecognizer.enabled = false;
    }else{
        self.navigationController.interactivePopGestureRecognizer.enabled = true;
    }
//    [self.navigationItem.backBarButtonItem setBackgroundImage:[UIImage imageNamed:@"backIcon"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    [self.navigationItem.backBarButtonItem setBackgroundImage:[UIImage imageNamed:@"backIcon"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];

//    self.automaticallyAdjustsScrollViewInsets = YES;
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    [self.navigationController setNavigationBarHidden:NO animated:YES];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
}
-(void)configUI{
    
}
-(NSMutableArray *)dataResultArray{
    if (!_dataResultArray) {
        _dataResultArray = [NSMutableArray new];
    }
    return _dataResultArray;
}


-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];

}


-(void)dealloc{
    /** 如果没有注册通知尽量不要写这句话 */
//    [[NSNotificationCenter defaultCenter] removeObserver:self];
}


@end
